//老板
#pragma once
#include"worker.h"
using namespace std;

class Boss:public Worker
{
public:
    Boss(int,string,int);
    virtual void showInfo();
    virtual string getDeptName();
};

Boss::Boss(int id,string name,int dId)
{
    this->m_Id = id;
    this->m_Name = name;
    this->m_DeptId = dId;
}

void Boss::showInfo()
{
    cout << "职工编号：" << this->m_Id << "\t"
         << "职工姓名：" << this->m_Name << "\t"
         << "岗位：" << this->getDeptName() << "\t"
         << "岗位职责：管理公司所有的事物" << endl;
}

string Boss::getDeptName()
{
    return string("总裁");
}